Apache HTTP Server

Apache HTTP Server
ASF-logo.svg
Original author(s) Robert McCool
Developer(s) Apache Software Foundation
Initial release 1995[1]
Stable release 2.2.15 / March 6, 2010; 11 months ago (2010-03-06)
Preview release 2.3.5-alpha / January 28, 2010; 12 months ago (2010-01-28)
Written in C
Operating system Cross-platform
Available in English
Type Web server
License Apache License 2.0
Website http://httpd.apache.org/

The Apache HTTP Server, commonly referred to as Apache (pronounced /əˈpætʃiː/), is web server software notable for playing a key role in the initial growth of the World Wide Web.[2] In 2009 it became the first web server software to surpass the 100 million web site milestone.[3] Apache was the first viable alternative to the Netscape Communications Corporation web server (currently known as Oracle iPlanet Web Server), and has since evolved to rival other Unix-based web servers in terms of functionality and performance. The majority of web servers using Apache run a Unix-like operating system.

Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation. The application is available for a wide variety of operating systems, including Unix, GNU, FreeBSD, Linux, Solaris, Novell NetWare, Mac OS X, Microsoft Windows, OS/2, TPF, and eComStation. Released under the Apache License, Apache is characterized as open source software.

Since April 1996 Apache has been the most popular HTTP server software in use. As of February 2010 Apache served over 54.46% of all websites and over 66% of the million busiest.[4]

Contents

History and name

The pre-release versions (before 0.6.2) of the Apache web server software was created by Robert McCool, who was heavily involved with the National Center for Supercomputing Applications web server, known simply as NCSA HTTPd. When McCool left NCSA in mid-1994, the development of httpd stalled, leaving a variety of patches for improvements circulating through e-mails. These patches were provided by a number of other developers besides McCool: Brian Behlendorf, Roy Fielding, Rob Hartill, David Robinson, Cliff Skolnick, Randy Terbush, Robert S. Thau, Andrew Wilson, Eric Hagberg, Frank Peters and Nicolas Pioch, and they thus helped to form the original "Apache Group".

There have been two explanations of the project's name. According to the Apache Foundation, the name was chosen out of respect for the Native American tribe of Apache (Indé), well-known for their endurance and their skills in warfare.[5] However, the original FAQ on the Apache Server project's website, from 1996 to 2001, claimed that "The result after combining [the NCSA httpd patches] was a patchy server.[6][7] The first explanation was supported at an Apache Conference[8] and in an interview in 2000 by Brian Behlendorf, who said that the name connoted "Take no prisoners. Be kind of aggressive and kick some ass".[9] Behlendorf then contradicted this in a 2007 interview, stating that "The Apache server isn't named in honor of Geronimo's tribe" but that so many revisions were sent in that "the group called it 'a patchy Web server'".[10] Both explanations are probably appropriate.[11]

The very first version (0.6.2) of publicly distributed Apache was released in April 1995. The 1.0 version was released on December 1, 1995. [12]

Version 2 of the Apache server was a substantial re-write of much of the Apache 1.x code, with a strong focus on further modularization and the development of a portability layer, the Apache Portable Runtime. The Apache 2.x core has several major enhancements over Apache 1.x. These include UNIX threading, better support for non-Unix platforms (such as Microsoft Windows), a new Apache API, and IPv6 support.[13] The first alpha release of Apache 2 was in March 2000, with the first general availability release on April 6, 2002.[14]

Version 2.2 introduced a more flexible authorization API. It also features improved cache modules and proxy modules.[15]

Features

Apache supports a variety of features, many implemented as compiled modules which extend the core functionality. These can range from server-side programming language support to authentication schemes. Some common language interfaces support Perl, Python, Tcl, and PHP. Popular authentication modules include mod_access, mod_auth, mod_digest, and mod_auth_digest, the successor to mod_digest. A sample of other features include SSL and TLS support (mod_ssl), a proxy module (mod_proxy), a URL rewriter (also known as a rewrite engine, implemented under mod_rewrite), custom log files (mod_log_config), and filtering support (mod_include and mod_ext_filter).

Popular compression methods on Apache include the external extension module, mod_gzip, implemented to help with reduction of the size (weight) of web pages served over HTTP. ModSecurity is an open source intrusion detection and prevention engine for web applications. Apache logs can be analyzed through a web browser using free scripts such as AWStats/W3Perl or Visitors.

Virtual hosting allows one Apache installation to serve many different actual websites. For example, one machine with one Apache installation could simultaneously serve www.example.com, www.test.com, test47.test-server.test.com, etc.

Apache features configurable error messages, DBMS-based authentication databases, and content negotiation. It is also supported by several graphical user interfaces (GUIs).

Use

Apache is primarily used to serve both static content and dynamic Web pages on the World Wide Web. Many web applications are designed expecting the environment and features that Apache provides.

Apache is redistributed as part of various proprietary software packages including the Oracle Database and the IBM WebSphere application server. Mac OS X integrates Apache as its built-in web server and as support for its WebObjects application server. It is also supported in some way by Borland in the Kylix and Delphi development tools. Apache is included with Novell NetWare 6.5, where it is the default web server. Apache is included with many Linux distributions.

Apache is used for many other tasks where content needs to be made available in a secure and reliable way. One example is sharing files from a personal computer over the Internet. A user who has Apache installed on their desktop can put arbitrary files in Apache's document root which can then be shared.

Programmers developing web applications often use a locally installed version of Apache in order to preview and test code as it is being developed.

Microsoft Internet Information Services (IIS) is the main competitor to Apache, followed by Sun Microsystems' Sun Java System Web Server and a host of other applications such as Zeus Web Server.

Performance

Although the main design goal of Apache is not to be the "fastest" web server, Apache does have performance comparable to other "high-performance" web servers. Instead of implementing a single architecture, Apache provides a variety of MultiProcessing Modules (MPMs) which allow Apache to run in a process-based, hybrid (process and thread) or event-hybrid mode, to better match the demands of each particular infrastructure. This implies that the choice of correct MPM and the correct configuration is important. Where compromises in performance need to be made, the design of Apache is to reduce latency and increase throughput, relative to simply handling more requests, thus ensuring consistent and reliable processing of requests within reasonable time-frames.

License

The software license under which software from the Apache Foundation is distributed is a distinctive part of the Apache HTTP Server's history and presence in the open source software community. The Apache License allows for the distribution of both open and closed source derivations of the source code.

The Free Software Foundation does not consider the Apache License to be compatible with version 2 of the GNU General Public License (GPL) in that software licensed under the Apache License cannot be integrated with software that is distributed under the GPL:

This is a free software license but it is incompatible with the GPL. The Apache Software License is incompatible with the GPL because it has a specific requirement that is not in the GPL: it has certain patent termination cases that the GPL does not require. We don't think those patent termination cases are inherently a bad idea, but nonetheless they are incompatible with the GNU GPL.[16]

However, version 3 of the GPL includes a provision (Section 7e) which allows it to be compatible with licenses that have patent retaliation clauses, including the Apache License.

The name Apache is a registered trademark and may only be used with the trademark holder's express permission.[17]

See also

References

  1. "About the Apache HTTP Server Project". Apache Software Foundation. http://httpd.apache.org/ABOUT_APACHE.html. Retrieved 2008-06-25. 
  2. Netcraft Market Share for Top Servers Across All Domains August 1995 - November 2009
  3. "February 2009 Web Server Survey". Netcraft. http://news.netcraft.com/archives/2009/02/18/february_2009_web_server_survey.html. Retrieved 2009-03-29. 
  4. "February 2010 Web Server Survey". Netcraft. February 22, 2010. http://news.netcraft.com/archives/2010/02/22/february_2010_web_server_survey.html. .
  5. "Frequently Asked Questions". The Apache Software Foundation. 2007. http://www.apache.org/foundation/faq.html#name. Retrieved 2008-04-23. 
  6. "Information on the Apache HTTP Server Project". 1996-10-28. http://web.archive.org/web/19961028123412/http://www.apache.org/info.html. Retrieved 2008-10-01. 
  7. "Information on the Apache HTTP Server Project". 2001-08-03. http://web.archive.org/web/20010803130101/http://www.apache.org/info.html. Retrieved 2008-10-01. 
  8. Bowen, Rich (2001-05-12). "A Patchy Server and the FAQ". apache-docs mailing list. http://mail-archives.apache.org/mod_mbox/httpd-docs/200105.mbox/%3c200105121825.f4CIPwK01232@rhiannon.rcbowen.com%3e. Retrieved 2008-10-01. 
  9. "Apache Power". Features. Linux Magazine. 2000-04. http://web.archive.org/web/20050214074858/http://www.linux-mag.com/2000-04/behlendorf_02.html. Retrieved 2008-10-01. 
  10. Babcock, Charles (2007-01-13). "High Five: Meet Brian Behlendorf, CTO of CollabNet". InformationWeek (CMP Media). http://www.informationweek.com/news/software/open_source/showArticle.jhtml?articleID=196900465. 
  11. Slive, Joshua (2001-05-12). "Re: A Patchy Server and the FAQ". apache-docs mailing list. http://mail-archives.apache.org/mod_mbox/httpd-docs/200105.mbox/%3CPine.GSO.4.31.0105121135550.16571-100000@garibaldi.commerce.ubc.ca%3E. Retrieved 2008-10-01. 
  12. See http://catalogimages.wiley.com/images/db/pdf/0764548212.01.pdf
  13. "Overview of new features in Apache 2.0". Apache HTTP Server Documentation. 2.0. The Apache Software Foundation. 2007. http://httpd.apache.org/docs/2.0/new_features_2_0.html. 
  14. "Apache 2 Release". England: Apache Week. 2002-04-06. http://www.apacheweek.com/features/ap2. 
  15. "Overview of new features in Apache 2.2". Apache HTTP Server Documentation. 2.2. The Apache Software Foundation. 2007. http://httpd.apache.org/docs/2.2/new_features_2_2.html. 
  16. Various Licenses and Comments about Them from GNU
  17. "Apache License and Distribution FAQ". The Apache Software Foundation. 2007. http://www.apache.org/foundation/licence-FAQ.html#Marks. 

External links